all: main


main: main.c thread.o
	gcc -g -Wall main.c thread.o -o main

thread.o: thread.c macros.h
	gcc -c -g -Wall thread.c

clean:
	rm *o *gch ./main

check: test.c thread.o
	gcc -g -Wall test.c thread.o -o test
	valgrind --tool=memcheck --leak-check=full -q --track-origins=yes ./test
